﻿cmake_minimum_required(VERSION 3.17)
project(test)

set(CMAKE_CXX_STANDARD 14)

#拷贝depends目录
file(COPY "../../../template/depends/lua/" DESTINATION "../depends/lua/")
file(COPY "../../../template/depends/LuaBridge/" DESTINATION "../depends/LuaBridge/")
file(COPY "../../../template/depends/glm/" DESTINATION "../depends/glm/")
file(COPY "../../../template/depends/rttr-0.9.6/src/rttr/" DESTINATION "../depends/rttr/")

#头文件目录
include_directories("depends/lua/src")
include_directories("depends")


file(GLOB_RECURSE lua_c "depends/lua/src/*.c")
file(GLOB_RECURSE rttr_cpp "depends/rttr/*.cpp")

add_executable(test ${lua_c} ${rttr_cpp} "example/main.cpp" source/component.cpp source/game_object.cpp)
